package com.alex.statistics.pojo;

/**
 * 全局状态码
 *
 * @author mbb
 */
public enum CodeEnum {
	/**
	 * 状态码
	 */
	ok(200, "成功"),
	fail(300, "失败"),
	error(400, "错误"),
	exception(500, "异常"),
	io_error(550, "参数异常"),

	;
	
	private final Integer code;
	
	private final String msg;
	
	CodeEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public Integer getCode() {
		return code;
	}
	
	public String getMsg() {
		return msg;
	}
}
